<?php
/**
 * Created by PhpStorm.
 * User: xiaomeng
 * Date: 17-8-31
 * Time: 下午12:10
 */
namespace swf\core;

class Router
{
    static public function check($cmd)
    {
        $router = Config::get('router');
        if(array_key_exists($cmd,$router))
        {
            $_router = $router[$cmd];
            $_router = explode('/',$_router);
            return ['controller'=>$_router[0],'method'=>$_router[1]];
        } else {
            return false;
        }
    }
}